<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>结算单</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;

        }
        input{
            height: 21px;
        }
    </style>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/02/drugb/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/02/jiesuan/jiesuantianjia.js"></script>
    <script type="text/javascript" src="../../js/fenye/leibie.js"></script>
    <script type="text/javascript" src="../../js/fenye/cengci.js"></script>
    <script type="text/javascript" src="../../js/fenye/gonghuo.js"></script>

    <script type="text/javascript">
      $(function () {
          var v = window.location.href;
          var id= v.substring(v.lastIndexOf("?") + 1, v.length);
          console.log(id)
          $("#ssid").val(id)
          gets()
      })
    </script>
</head>
<body>
<form id="commentsAdd" name="commentsAdd">
<div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
        <tr>
            <h3 style="height: 50px" >添加结算药品</h3>

        </tr>
        <tr>
            <td>采购单编号：</td>
            <td><input id="po_number" name="ponumber" type="text" value=""></td>
            <td></td>
            <td>采购单名称：</td>
            <td><input id="po_name" name="poname" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>采购状态：</td>
            <td>
                <input  id="pageNum" name="pageNum" type="hidden" value="">
                <input  id="ssid" name="ssid" type="hidden" value="">
                <select id="po_state" name="postate" style=" height: 25px; width: 160px;">
                    <option value="">请选择</option>
                    <option value="0">未发货</option>
                    <option value="1">已发货</option>
                    <option value="2">已入库</option>
                </select>
            </td>
            <td></td>
            <td>采购医院：</td>
            <td><input id="podi_hid" name="podihid" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>开始采购时间: </td>
            <td><input id="startTime" name="startTime" value="" type="date"></td>
            <td></td>
            <td>结束采购时间: </td>
            <td><input id="endTime" name="endTime" value="" type="date"></td>
            <td></td>
        </tr>
        <tr>
            <td>药品流水号：</td>
            <td><input id="di_number" name="dinumber" type="text" value=""></td>
            <td></td>
            <td>通用名：</td>
            <td><input id="c_name" name="cname" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>剂型：</td>
            <td><input id="jixing" name="jixing" type="text" value=""></td>
            <td></td>
            <td>规格：</td>
            <td><input id="guige" name="guige" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>单位：</td>
            <td><input id="danwei" name="danwei" type="text" value=""></td>
            <td></td>
            <td>转换系数：</td>
            <td><input id="cc" name="cc" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>生产企业：</td>
            <td><input name="qiye" id="qiye" type="text" value=""></td>
            <td></td>
            <td>商品名：</td>
            <td><input name="shangpin" id="shangpin" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>质量层次：</td>
            <td>
                <select id="cengci" name="cengci" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                </select>
            </td>
            <td></td>
            <td>药品类别：</td>
            <td>
                <select id="dcid" name="dcid" style=" height: 25px; width: 160px;">
                <option value="">全部</option>
            </select>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>入库时间：</td>
            <td><input id="lefTime" style="width: 80px" type="date" value="">至<input id="rightTime" style="width: 80px" type="date" value=""></td>
            <td></td>
            <td>药品批号：</td>
            <td><input id="di_approval_number" name="diapprovalnumber" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>发票号或入库单号:</td>
            <td><input id="fapiaohao" name="fapiaohao" value=""></td>
            <td></td>
            <td>供货商：</td>
            <td>
                <select id="daSupplier"  name="daSupplier" style=" height: 25px; width: 160px;">
                    <option value="0">请选择</option>
                </select>
            </td>
            <td></td>
        </tr>


    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" onclick="gets(1)">查询</button>
        <br>

    </td>
    <table>
        <button type="reset"  onclick="show()">添加</button>
        <tr>
            <td>序号</td>
            <td><input type="checkbox" id="checkbox1" onclick="selectAll(this)">选择</td>
            <td>采购单编号</td>
            <td>采购单名称</td>
            <td>流水号</td>
            <td>通用名</td>
            <td>商品名</td>
            <td>中标价</td>
            <td>交易价</td>
            <td>采购量</td>
            <td>采购金额</td>
            <td>入库量</td>
            <td>实际交易金额</td>
            <td>发票号</td>
            <td>药品批号</td>
            <td>有效期</td>
            <td>退货量</td>
            <td>退货金额</td>
            <td>结算量</td>
            <td>结算金额</td>
            <td>剂型</td>
            <td>规格</td>
            <td>单位</td>
            <td>转换系数</td>
            <td>质量层次</td>
            <td>生产企业</td>
            <td>供货企业</td>
            <td>开始采购时间</td>
            <td>结束采购时间</td>
            <td>结算状态</td>
            <td>详细</td>
        </tr>
        <tbody class="a">
        </tbody>
    </table>
</div>
</form>
<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
</body>
</html>
